﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pro_PoDataChange.aspx.cs" Inherits="ArtLand.OA.Project.Project.Pro_PoDataChange" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../js/jquery-1.4.1.min.js"></script>
    <style>
        .x-form-item
        {
            padding: 5px;
        }

        .mright
        {
            margin-right: 5px;
        }

        .tright
        {
            text-align: right;
        }

        .datecontainer .x-form-field-trigger-wrap
        {
            margin-right: 5px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
        <ext:Panel ID="Panel1" BodyPadding="10px" runat="server" EnableBackgroundColor="false"
            EnableCollapse="True" Title="面板" Width="600px" ShowHeader="false" ShowBorder="false" AutoScroll="true">
            <Toolbars>

                <ext:Toolbar runat="server" ID="tool1">
                    <Items>
                        <ext:Button runat="server" ID="Button6" Text="批准" ConfirmText="您确定要审批通过吗？" Icon="Accept" OnClick="Button6_Click"></ext:Button>
                        <ext:ToolbarSeparator></ext:ToolbarSeparator>
                        <ext:Button runat="server" ID="Button7" Text="不批准" Icon="Decline" ConfirmText="您确定不批准该条申请吗？" OnClick="Button7_Click"></ext:Button>
                    </Items>
                </ext:Toolbar>
                <ext:Toolbar Position="Footer" runat="server" ID="tool2">
                    <Items>
                        <ext:Button Text="保存" Icon="DatabaseSave" ConfirmText="颜色，规格尺寸，型号，其它细节是否已经确认？" ID="Button8" ValidateForms="SimpleForm2" runat="server" OnClick="btnSave_Click"></ext:Button>
                        <ext:Button Text="重置" runat="server" ID="Button9" Icon="Reload" OnClick="Res_Click"></ext:Button>
                        <ext:Button Text="关闭" Icon="SystemClose" ID="Button10" runat="server"></ext:Button>
                    </Items>
                </ext:Toolbar>

            </Toolbars>
            <Items>
                <ext:SimpleForm ID="SimpleForm2" EnableBackgroundColor="false" ShowBorder="false" ShowHeader="false" Width="470px" BodyPadding="5px" Title="表单" runat="server">
                    <Items>
                        <ext:GroupPanel Title="采购信息">

                            <Items>
                                <ext:Panel ID="Panel2" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                                    Layout="Column" runat="server">
                                    <Items>
                                        <ext:Label ID="Label3" runat="server" Width="60px" Text="订单类型：" CssClass="inline"></ext:Label>
                                        <ext:DropDownList runat="server" ID="Drp_POTYPE" Label="订单类型" Width="140px"></ext:DropDownList>
                                        <ext:Label ID="Label9" runat="server" Width="80px" Text="申请人：" CssClass="tright"></ext:Label>
                                        <ext:TriggerBox ID="txt_REQTOR" Label="申请人" Width="140px" EnableEdit="false" Readonly="false" TriggerIcon="Search" EmptyText="选择申请人" runat="server">
                                        </ext:TriggerBox>
                                        <ext:HiddenField runat="server" ID="hid_REQTOR"></ext:HiddenField>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel ID="Panel9" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                                    Layout="Column" runat="server">
                                    <Items>
                                        <ext:Label ID="Label4" runat="server" Width="60px" Text="合同编号：" CssClass="inline"></ext:Label>
                                        <ext:TriggerBox ID="txt_CONNUB" Label="合同" Width="140px" EnableEdit="false" ShowLabel="false" Readonly="false" TriggerIcon="Search" EmptyText="选择合同" runat="server">
                                        </ext:TriggerBox>
                                        <ext:HiddenField runat="server" ID="hid_A"></ext:HiddenField>
                                        <ext:Label ID="Label5" runat="server" Width="80px" Text="供应商编号：" CssClass="tright"></ext:Label>
                                        <ext:TriggerBox ID="txt_VEDNUB" Label="供应商" Width="140px" ShowLabel="false" Readonly="false" TriggerIcon="Search" EmptyText="选择供应商" runat="server">
                                        </ext:TriggerBox>
                                        <ext:HiddenField runat="server" ID="hid_VEDNUB"></ext:HiddenField>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel ID="Panel8" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                                    Layout="Column" runat="server">
                                    <Items>
                                        <ext:Label ID="Label16" runat="server" Width="60px" Text="订单日期：" CssClass="inline"></ext:Label>
                                        <ext:DatePicker ID="txt_AddTime" runat="server" Label="订单日期" Required="true" Width="122px"></ext:DatePicker>
                                        <ext:Label ID="Label17" runat="server" Width="100px" Text="供应商订单号：" CssClass="tright"></ext:Label>
                                       <ext:TextBox runat="server" ID="txt_VEDNNBNo" Label="供应商订单号"></ext:TextBox>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel ID="Panel7" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                                    Layout="Column" runat="server">
                                    <Items>
                                        <ext:Label ID="Label12" runat="server" Width="300px" EncodeText="false" Text="" CssClass="inline"></ext:Label>
                                        <ext:Label ID="Label14" runat="server" Text="" EncodeText="false"></ext:Label>
                                    </Items>
                                </ext:Panel>
                            </Items>
                        </ext:GroupPanel>
                        <ext:GroupPanel Title="采购金额信息" ID="Group1" runat="server">
                            <Items>
                                <ext:Panel ID="Panel3" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                                    Layout="Column" runat="server">
                                    <Items>
                                        <ext:Label ID="Label2" runat="server" Width="75px" Text="不含税总额：" CssClass="inline"></ext:Label>
                                        <ext:NumberBox ID="txt_CAMOUT" runat="server" Width="145px" CssClass="mright" Text="0" />
                                        <ext:Label ID="Label7" runat="server" Width="75px" Text="采购总金额：" CssClass="inline"></ext:Label>
                                        <ext:NumberBox runat="server" ID="txt_TAMOUT" Width="135px" Text="0"></ext:NumberBox>
                                        <ext:Label ID="Label15" runat="server" Text="" EncodeText="false" Hidden="true"></ext:Label>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel ID="Panel5" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                                    Layout="Column" runat="server">
                                    <Items>
                                        <ext:Label ID="Label6" runat="server" Text="是否含税"></ext:Label>
                                        <ext:CheckBox runat="server" ID="CB_CHKTAX" CssClass="mright" AutoPostBack="true" OnCheckedChanged="CHK_TAX_CheckedChanged"></ext:CheckBox>
                                        <ext:Label ID="Label8" runat="server" Text="税率："></ext:Label>
                                        <ext:DropDownList runat="server" Width="50px" Enabled="false" ID="Drp_PERTAX" AutoPostBack="true" OnSelectedIndexChanged="Drp_PERTAX_SelectedIndexChanged"></ext:DropDownList>
                                        <ext:Label ID="Label13" runat="server" Text="%"></ext:Label>

                                    </Items>
                                </ext:Panel>
                            </Items>
                        </ext:GroupPanel>
                        <ext:GroupPanel Title="其他信息" EnableCollapse="true">
                            <Items>
                                <ext:Panel ID="Panel6" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                                    Layout="Column" runat="server">
                                    <Items>
                                        <ext:Label ID="Label10" runat="server" Width="65px" Text="交货日期：" CssClass="inline"></ext:Label>
                                        <ext:DatePicker runat="server" AutoPostBack="true" EnableDateSelectEvent="true" OnDateSelect="txt_DLDATE_DateSelect" ID="txt_DLDATE" Required="true" Label="交货日期" Width="150px"></ext:DatePicker>
                                        <ext:Label ID="Label11" runat="server" Width="75px" Text="付款方式：" CssClass="tright"></ext:Label>
                                        <ext:DropDownList runat="server" ID="Drp_PATYPE" Label="付款方式" Width="127px"></ext:DropDownList>
                                    </Items>
                                </ext:Panel>
                                <ext:Panel ID="Panel4" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                                    Layout="Column" runat="server">
                                    <Items>
                                        <ext:Label ID="Label1" runat="server" Width="65px" Text="备注说明：" CssClass="inline"></ext:Label>
                                        <ext:TextArea ID="txt_REMARK" runat="server" Width="350px"></ext:TextArea>
                                    </Items>
                                </ext:Panel>

                            </Items>
                        </ext:GroupPanel>
                        <ext:Grid runat="server" ID="Grid1" Height="150px" OnRowDataBound="Grid1_RowDataBound" Title="供应商报价单" OnRowCommand="Grid1_RowCommand" AutoScroll="true" ShowHeader="true" EnableRowNumber="true">
                            <Toolbars>
                                <ext:Toolbar ID="Toolbar1" CssClass="mytoolbar" runat="server">
                                    <Items>
                                        <ext:FileUpload runat="server" ID="filePhoto" ButtonText="上传附件" ButtonOnly="true"
                                            AutoPostBack="true" ButtonIcon="DiskUpload" OnFileSelected="filePhoto_FileSelected" Width="77px" Height="20px">
                                        </ext:FileUpload>
                                    </Items>
                                </ext:Toolbar>
                            </Toolbars>
                            <Columns>
                                <ext:BoundField DataField="FileName" Width="370px" HeaderText="文件名" />
                                <ext:BoundField DataField="FileName" Width="250px" HeaderText="文件名" Hidden="true" />
                                <ext:LinkButtonField ConfirmText="你确定要这么做么？" ConfirmTarget="Top" Icon="Decline" ColumnID="ID"
                                    Width="50px" CommandName="Del" TextAlign="Center" HeaderText="删除" />
                            </Columns>
                        </ext:Grid>
                    </Items>
                </ext:SimpleForm>
            </Items>
        </ext:Panel>
        <ext:Button runat="server" ID="Button3" OnClick="Button3_Click"></ext:Button>
        <ext:Button runat="server" ID="Button1" OnClick="Button1_Click"></ext:Button>
        <ext:Button runat="server" ID="Button2" OnClick="Button2_Click"></ext:Button>
        <ext:Button runat="server" ID="Button4" OnClick="Button4_Click"></ext:Button>
        <ext:Button runat="server" ID="Button5" OnClick="Button5_Click"></ext:Button>
        <ext:HiddenField ID="hf" runat="server"></ext:HiddenField>
        <ext:HiddenField ID="tt" runat="server"></ext:HiddenField>
        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server" EnableConfirmOnClose="true" IFrameUrl="about:blank"
            Target="Top" IsModal="True" Width="650px" Height="400px" OnClose="Window1_Close">
        </ext:Window>
    </form>
    <script src="../js/extgridbug.js"></script>
    <style>
        .x-form-check-wrap input
        {
            vertical-align: text-top;
        }
    </style>
    <script>
        function onReady() {
            //var textbox1ID = '';
            //$("#" + textbox1ID).keydown(function () {
            //    X.disable('Button1');
            //    __doPostBack('Button1', '');

            //    // 这里可以写些验证代码
            //});
            var textbox2ID = '<%=txt_TAMOUT.ClientID %>';
            $("#" + textbox2ID).keydown(function () {
                X.disable('Button2');
                __doPostBack('Button2', '');

                // 这里可以写些验证代码
            });

            var textbox3ID = '<%=txt_CAMOUT.ClientID %>';
            $("#" + textbox3ID).keydown(function () {
                X.disable('Button3');
                __doPostBack('Button3', '');

                // 这里可以写些验证代码
            });

        }
    </script>
</body>
</html>
